/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.bus.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 业务表关联字典项表Entity
 * @author mengying
 * @version 2019-05-29
 */
public class EntDic extends DataEntity<EntDic> {
	
	private static final long serialVersionUID = 1L;
	private String tableId;		// 表ID
	private String tableName;		// 表名
	private String dicTypeId;		// 字典类型
	private String dicInfoCode;		// 字典code
	private String dicInfoName;		// 字典名称(养殖种类)
	private String initialDeposit;		// 存栏量
	private String yearDeposit;		// 年出栏量
	private String sort;		// 排序
	private String status;		// 启用状态 0:不可用 1:可用

	public EntDic() {
		super();
	}

	public EntDic(String id){
		super(id);
	}

	@Length(min=0, max=18, message="表ID长度必须介于 0 和 18 之间")
	public String getTableId() {
		return tableId;
	}

	public void setTableId(String tableId) {
		this.tableId = tableId;
	}
	
	@Length(min=0, max=30, message="表名长度必须介于 0 和 30 之间")
	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}
	
	@Length(min=0, max=30, message="字典类型长度必须介于 0 和 30 之间")
	public String getDicTypeId() {
		return dicTypeId;
	}

	public void setDicTypeId(String dicTypeId) {
		this.dicTypeId = dicTypeId;
	}
	
	@Length(min=0, max=30, message="字典code长度必须介于 0 和 30 之间")
	public String getDicInfoCode() {
		return dicInfoCode;
	}

	public void setDicInfoCode(String dicInfoCode) {
		this.dicInfoCode = dicInfoCode;
	}
	
	@Length(min=0, max=20, message="字典名称(养殖种类)长度必须介于 0 和 20 之间")
	public String getDicInfoName() {
		return dicInfoName;
	}

	public void setDicInfoName(String dicInfoName) {
		this.dicInfoName = dicInfoName;
	}
	
	@Length(min=0, max=10, message="存栏量长度必须介于 0 和 10 之间")
	public String getInitialDeposit() {
		return initialDeposit;
	}

	public void setInitialDeposit(String initialDeposit) {
		this.initialDeposit = initialDeposit;
	}
	
	@Length(min=0, max=4, message="排序长度必须介于 0 和 4 之间")
	public String getSort() {
		return sort;
	}

	public void setSort(String sort) {
		this.sort = sort;
	}
	
	@Length(min=0, max=1, message="启用状态 0:不可用 1:可用长度必须介于 0 和 1 之间")
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getYearDeposit() {
		return yearDeposit;
	}

	public void setYearDeposit(String yearDeposit) {
		this.yearDeposit = yearDeposit;
	}
}